<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common/tag.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>已分配列表页</title>
    <%@include file="common/head.jsp"%>
</head>
<body>
<!-- 页面显示部分-->
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading text-center">
            <h2>已分配列表</h2>
        </div>
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>
                        <a class="btn btn-info" href="/distribute/index" target="_blank">返回主页</a>
                    </th>
                    <th>
                        <a class="btn btn-info" href="/distribute/addWorkerJob" target="_blank">安排工作</a>
                    </th>
                </tr>
                </thead>
            </table>
        </div>
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>员工工号</th>
                    <th>职业编号</th>
                    <th>员工姓名</th>
                    <th>职业名称</th>
                    <th>职业薪资</th>
                    <th>操    作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="worker_job" items="${work_jobList}">
                    <tr>
                        <td>${worker_job.workerId}</td>
                        <td>${worker_job.jobId}</td>
                        <td>${worker_job.workerName}</td>
                        <td>${worker_job.jobName}</td>
                        <td>${worker_job.salary}</td>
                        <td>
                            <a class="btn btn-info" href="/distribute/${worker_job.workerId}/${worker_job.jobId}/deleteWorkerJob" >删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</html>
